<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use App\Polling\Controllers\IndexController;
use App\Polling\Controllers\BasketController;

Route::group([
    'middleware' => ['test.token', 'throttle:600,1'],
], function (Router $router) {
    Route::get('/', [IndexController::class, 'index']);
    Route::get('/competitions/infos', [IndexController::class, 'getCompetitionsInfos']);
    Route::get('/competitions/introductions', [IndexController::class, 'getCompetitionsIntroductions']);
    Route::get('/competitions/groups', [IndexController::class, 'getCompetitionsGroups']);
    Route::get('/teams/infos', [IndexController::class, 'getTeamsInfos']);
    Route::get('/competitions/leagueTables', [IndexController::class, 'getCompetitionsLeagueTables']);
    Route::get('/competitions/detailLeagueTables', [IndexController::class, 'getCompetitionsDetailLeagueTables']);
    Route::get('/players/infos', [IndexController::class, 'getPlayersInfos']);
    Route::get('/players/suspensions', [IndexController::class, 'getPlayersSuspensions']);
    Route::get('/transfers/queryByDate', [IndexController::class, 'getTransfersByDate']);
    Route::get('/countries/infos', [IndexController::class, 'getCountriesInfos']);
    Route::get('/competitions/fixture', [IndexController::class, 'getCompetitionsFixture']);
    Route::get('/competitions/queryFixtureByDate', [IndexController::class, 'getCompetitionsFixtureByDate']);
    Route::get('/matchs/modifyLogs', [IndexController::class, 'getMatchsModifyLogs']);
    Route::get('/matchs/previewStarters', [IndexController::class, 'getMatchsPreviewStarters']);
    Route::get('/matchs/liveScores', [IndexController::class, 'getMatchsLiveScores']);
    Route::get('/matchs/liveTimelines', [IndexController::class, 'getMatchsLiveTimelines']);
    Route::get('/matchs/liveSimplePlayerStats', [IndexController::class, 'getMatchsLiveSimplePlayerStats']);
    Route::get('/matchs/liveSimpleTeamStats', [IndexController::class, 'getMatchsLiveSimpleTeamStats']);
    Route::get('/matchs/liveTrend', [IndexController::class, 'getMatchsLiveTrend']);
    Route::get('/lotteries/jczqOdds', [IndexController::class, 'getLotteriesJczqOdds']);
    Route::get('/lotteries/bjdcOdds', [IndexController::class, 'getLotteriesBjdcOdds']);
    Route::get('/lotteries/bjdcSfggOdds', [IndexController::class, 'getLotteriesBjdcSfggOdds']);
    Route::get('/lotteries/jczqResults', [IndexController::class, 'getLotteriesJczqResults']);
    Route::get('/lotteries/bjdcResults', [IndexController::class, 'getLotteriesBjdcResults']);
    Route::get('/lotteries/bjdcSfggResults', [IndexController::class, 'getLotteriesBjdcSfggResults']);
    Route::get('/lotteries/ctzc', [IndexController::class, 'getLotteriesCtzc']);
    Route::get('/companies/infos', [IndexController::class, 'getCompaniesInfos']);
    Route::get('/zhishu/v1/mainOdds', [IndexController::class, 'getZhishuMainOdds']);
    Route::get('/zhishu/v1/mainOddsChange', [IndexController::class, 'getZhishuMainOddsChange']);
    Route::get('/zhishu/v1/otherOdds', [IndexController::class, 'getZhishuOtherOdds']);
    Route::get('/zhishu/v1/otherOddsChange', [IndexController::class, 'getZhishuOtherOddsChange']);
    Route::get('/players/stats', [IndexController::class, 'getPlayersStats']);
    Route::get('/players/getStatsByCompetition', [IndexController::class, 'getPlayersStatsByCompetition']);
    Route::get('/teams/stats', [IndexController::class, 'getTeamsStats']);
    Route::get('/teams/getStatsByCompetition', [IndexController::class, 'getTeamsStatsByCompetition']);
    Route::get('/zhishu/v1/mainOddsHistory', [IndexController::class, 'getZhishuMainOddsHistory']);

    // BasketController Routes
    Route::get('/basketball/competitions/infos', [BasketController::class, 'getCompetitionsInfos']);
    Route::get('/basketball/competitions/seasons', [BasketController::class, 'getCompetitionSeasons']);
    Route::get('/basketball/competitions/stages', [BasketController::class, 'getCompetitionStages']);
    Route::get('/basketball/teams/infos', [BasketController::class, 'getTeamsInfos']);
    Route::get('/basketball/teams/update', [BasketController::class, 'getRecentTeamsUpdate']);
    Route::get('/basketball/players/infos', [BasketController::class, 'getPlayersInfos']);
    Route::get('/basketball/players/update', [BasketController::class, 'getRecentPlayersUpdate']);
    Route::get('/basketball/competitions/standings', [BasketController::class, 'getCompetitionStandings']);
    Route::get('/basketball/venues/infos', [BasketController::class, 'getVenuesInfos']);
    Route::get('/basketball/areas/infos', [BasketController::class, 'getAreasInfos']);
    Route::get('/basketball/matchs/fixture', [BasketController::class, 'getMatchsFixture']);
    Route::get('/basketball/matchs/queryFixtureByDate', [BasketController::class, 'queryFixtureByDate']);
    Route::get('/basketball/matchs/modifyLogs', [BasketController::class, 'getMatchsModifyLogs']);
    Route::get('/basketball/matchs/liveScores', [BasketController::class, 'getMatchsLiveScores']);
    Route::get('/basketball/matchs/playerStats', [BasketController::class, 'getMatchsPlayerStats']);
    Route::get('/basketball/matchs/teamStats', [BasketController::class, 'getMatchsTeamStats']);
    Route::get('/basketball/players/stats', [BasketController::class, 'getPlayersStats']);
    Route::get('/basketball/teams/stats', [BasketController::class, 'getTeamsStats']);
    Route::get('/basketball/lotteries/jclqOdds', [BasketController::class, 'getJclqOdds']);
    Route::get('/basketball/lotteries/jclqResults', [BasketController::class, 'getJclqResults']);
    Route::get('/basketball/companies/infos', [BasketController::class, 'getCompaniesInfos']);
    Route::get('/basketball/zhishu/mainOdds', [BasketController::class, 'getMainOdds']);
    Route::get('/basketball/zhishu/mainOddsChange', [BasketController::class, 'getMainOddsChange']);
});
